import java.applet.Applet;

import java.applet.*;
import java.awt.Graphics;

public class AppletDemo01 {

    public static void main(String[] args) {
        Demo demo = new Demo();
        demo.paint();
    }

}

class Demo extends Applet {
    /**
     * 为什么调用不了
     */
    private static final long serialVersionUID = 1L;

    public void paint() {
        Graphics g = new Graphics();
        g.drawString("Hello World", 25, 50);
    }
}
